/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    DongPeng
 * 创建时间:    2023-09-21
 * copyright(c) 2022 无锡星智数服科技有限公司
 */
package org.jeecg.modules.dock.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.dock.entity.nest.NestBaseRequestVO;
import org.jeecg.modules.dock.entity.nest.NestUpdateStatusVO;
import org.jeecg.modules.dock.service.NestDockingRepeaterService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 内部对接mes控制器
 *
 * @author DongPeng
 * @version 1.0.0
 * @date 2023-09-21
 * @description 类描述
 */
@Slf4j
@RestController
@RequestMapping("dock/repeater/nest")
@RequiredArgsConstructor
@Api(tags = "套裁业务调用模块")
public class NestDockingRepeaterController{

    private final NestDockingRepeaterService nestDockingRepeaterService;

    @ApiOperation(value = "任务状态更新", notes = "任务状态更新")
    @PostMapping("/updateStatus")
    public NestUpdateStatusVO updateStatus(@RequestBody NestBaseRequestVO  requestVO) {
        return nestDockingRepeaterService.updateStatus(requestVO);
    }

}
